<template>
  <div>
    <!-- <h1 ref='myH'>我是一个孤独又古怪的小丑</h1> -->
    <!-- <books ref='ab'></books> -->
    <p ref='myP'>{{count}}</p>
    <button @click="btn">+1</button>
  </div>
</template>

<script>
import axios from './Utils/request.js'
import books from './02-axios的使用.vue'
export default {
  data(){
    return {
      count: 0
    }
  },
mounted(){
  // console.log(this.$refs.myH);
  console.log(this.$refs);
},
components: {
  books
},
methods: {
  btn(){
    this.count++;
    // console.log(this.$refs.myP.innerHTML);
    this.$nextTick(()=>{
      console.log(this.$refs.myP.innerHTML)
    })
  }
}
}
</script>

<style>

</style>